package com.lab.project.classroom.mapper;

import com.lab.project.classroom.domain.SchoolClassroomEntity;

import java.util.List;
import java.util.Map;

/**
 * @author 黄晏凯
 */
public interface SchoolClassroomMapper {
    /**
     * 添加教室
     * @param schoolClassroomEntity
     * @return
     */
    Integer addClassroom(SchoolClassroomEntity schoolClassroomEntity);

    /**
     * 查询班级
     * @param schoolClassroomEntity
     * @return List<SchoolClassroomEntity>
     */
    List<SchoolClassroomEntity> listClassroom(SchoolClassroomEntity schoolClassroomEntity);

    /**
     * 通过id查询教室
     * @param id
     * @return SchoolClassroomEntity
     */
    SchoolClassroomEntity getSchoolClassroomInfoById(Long id);

    /**
     * 修改教室
     * @param schoolClassroomEntity
     * @return Integer
     */
    Integer updateSchoolClassroom(SchoolClassroomEntity schoolClassroomEntity);

    /**
     * 删除教室
     * @param ids
     * @return 返回受影响的条数
     */
    int deleteSchoolClassroomByIdMap(Map<String, Object> ids);
}
